import request from "@/utils/request";

//文章列表
export function list(query) {
    return request({
        url: '/admin/info/Article/list',
        method: 'post',
        params: query
    })
}

//添加文章
export function add(query) {
    return request({
        url: '/admin/info/Article/add',
        method: 'post',
        data: query
    })
}

//删除文章
export function del(query) {
    return request({
        url: '/admin/info/Article/del',
        method: 'post',
        data: query
    })
}

//编辑文章
export function edit(query) {
    return request({
        url: '/admin/info/Article/edit',
        method: 'post',
        data: query
    })
}

//获取文章信息
export function getInfo(query) {
    return request({
        url: '/admin/info/Article/getInfo',
        method: 'post',
        data: query
    })
}